package model

import "time"

type RoleModel struct {
	Id       int64
	Name     string    `xorm:"varchar(64) notnull 'name' comment('名称')"`
	Weight   int64     `xorm:"notnull 'weight' comment('相同父id时的权重')"`
	ParentId int64     `xorm:"notnull 'parent_id' comment('父级id')"`
	CreateAt time.Time `xorm:"'create_at' created"`
	UpdateAt time.Time `xorm:"'update_at' updated"`
}

func (RoleModel) TableName() string {
	return "role"
}
